<?php

namespace Xrfg\Api\Trading\Spot\Account\Providers;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;

class ServiceProvider extends IlluminateServiceProvider
{
    public function boot()
    {
        $this->registerRoutes();
    }

    public function register()
    {
    }

    private function registerRoutes()
    {
        Route::prefix('api/spot/account')
            ->middleware('api')
            ->namespace('Xrfg\\Api\\Trading\\Spot\\Account\\Controllers')
            ->group(function () {
                $this->loadRoutesFrom(__DIR__.'/../../routes/api.php');
            });
    }
}
